<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateConsultSettingsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_consult_settings', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('work_id')->comment('工作室id');
            $table->integer('type')->comment('类型1图文2电话');
            $table->integer('consult_switch')->comment('咨询开关');
            $table->integer('appointment_consult_switch')->comment('预约咨询开关');
            $table->string('time')->comment('时间分钟');
            $table->decimal('money')->comment('金额');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_consult_settings');
    }
}
